package com.linshidream.intrachat.simplenio.pipeline.handler;

import com.linshidream.intrachat.simplenio.pipeline.context.MiniChannel;
import com.linshidream.intrachat.simplenio.pipeline.context.MiniHandlerContext;

/**
 * Created on 2025/8/19 18:03
 *
 * @author linshidream
 * @version 1.0.0
 * @description 初始化 pipleline
 */

public abstract class MiniChannelInitializer implements MiniChannelInboundHandler {
    @Override
    public void channelActive(MiniHandlerContext ctx) {
        // 初始化 pipeline
        initChannel(ctx.channel());
        // 初始化完再继续 fire
        ctx.fireChannelActive();
    }


    public abstract void initChannel(MiniChannel ch);
}
